Skip to content

feat: the live queue serves the whole instance - #84

Merged
fiddur merged 5 commits into
developfrom
live-instance-queue
Sep 3, 2026
Merged

feat: the live queue serves the whole instance#84
fiddur merged 5 commits into
developfrom
live-instance-queue

Conversation

@fiddur

@fiddur fiddur commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

Closes #51.

The file browser is its own diffity session and every ref gets one. A reader asking a question on one session while the only agent sat parked (via diffity-live) on another left both waiting forever: the parked agent never saw the request, and the reader never got an answer.

The live queue, its listeners, and the page's "listening" answer are now instance-wide: the request names its own thread, so whichever agent is parked anywhere on this instance takes it. Waiting and working counts stay per session, since they describe the requests a given page can see.

Self-review found the other half missing and fixed it: the agent's reply, resolve and dismiss refused a thread outside the agent's own session, so a request claimed from another session could be received but not answered. Threads are addressable across the instance now; tours stay with their session. A CLI test covers reply and resolve on a thread from another session, and the cross-session claim test now really uses two sessions.

Bumps to 0.10.14.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Bwp5QefjsjMFeq6CK6cT6w

fiddur and others added 4 commits September 1, 2026 14:10
The file browser is its own session and every ref gets one, and a
reader asking on one session while the only agent sat parked on
another left both waiting forever. The queue, the listeners and the
page's "listening" answer are now instance-wide: the request names its
thread, so whichever agent is parked here takes it. Waiting and
working stay per session — they describe the requests a page can see.

WIP toward #51 — not yet reviewed or pushed.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018PkYQzbsnMihHesafWvXKs
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Bwp5QefjsjMFeq6CK6cT6w
…and resolution

The queue became instance-wide but the agent's thread commands still refused a thread
outside the agent's own session, so a request claimed from another session could be
received and not answered. Threads are addressable across the instance now; tours stay
with their session. The cross-session claim test puts its thread on a second session, as
its comment always said, and a CLI test replies to and resolves a thread from another
session.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Bwp5QefjsjMFeq6CK6cT6w
@fiddur fiddur changed the title WIP: the live queue serves the whole instance (#51) feat: the live queue serves the whole instance Sep 3, 2026
… on stderr

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Bwp5QefjsjMFeq6CK6cT6w
@fiddur
fiddur marked this pull request as ready for review September 3, 2026 13:03
@fiddur
fiddur merged commit 0df5245 into develop Sep 3, 2026
2 checks passed
@fiddur
fiddur deleted the live-instance-queue branch September 3, 2026 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Collapse the live-queue scope mismatch (per-session queue vs process-global presence)

1 participant